<?php 
    //文件I/O相关的异常
?>
<?php
    class fileOpenException extends Exception
    {
        function _toString()
        {
            return "fileOpenException ". $this->getCode()
            ."：". $this->getMessage()."<br />"." in "
            . $this->getFile(). " on line "
            . $this->getLine()
            ."<br />";
        }
    }

    class fileWriteException extends Exception
    {
        function _toString()
        {
            return "fileWriteException ". $this->getCode()
            ."：". $this->getMessage()."<br />"." in "
            . $this->getFile(). " on line "
            . $this->getLine()
            ."<br />";
        }
    }

    class fileLockException extends Exception
    {
        function _toString()
        {
            return "fileLockException ". $this->getCode()
            ."：". $this->getMessage()."<br />"." in "
            . $this->getFile(). " on line "
            . $this->getLine()
            ."<br />";
        }
    }
?>